package com.pxmeta.circle.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户圈子表
 * </p>
 *
 * @author wcl
 * @since 2022-05-14
 */
@TableName("kt_user_circle")
@ApiModel(value = "UserCircle对象", description = "用户圈子表")
@Data
public class UserCircle implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("圈子id")
    private Long circleId;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty(value = "等级")
    private Integer userRank;

    @ApiModelProperty(value = "称号")
    private String title;

    @ApiModelProperty(value = "经验值")
    private Integer exp;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("级别：0普通用户，1管理员，2圈主")
    private Integer level;

    @ApiModelProperty("是否删除")
    private Integer isDel;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
